// src\views\sendbox\NewsSendBox.jsx
// 系统主视图 组件
import React, {  useState } from 'react';
// import { Redirect, Route ,Switch} from 'react-router-dom';
import { Layout,theme } from 'antd';
// 引入样式
import './NewsSendBox.css'
// 引入组件
import SideMenu from '@/components/sendBox/SideMenu';
import TopHeader from '@/components/sendBox/TopHeader'
// import NoPermission from './nopermission/NoPermission';
import { Content } from 'antd/es/layout/layout';
import NewRouter from '@/components/router/NewRouter';
export default function NewsSendBox() {
  const {
    token: { colorBgContainer },
  } = theme.useToken();
  // 控制左侧菜单侧边栏的收缩和展开
  // const [collapsed,setcollapsed]=useState(false);
  // const changeCollapsed=()=>{
  //   console.log("NewsSendBox---changeCollapsed");
  //   setcollapsed(!collapsed);
  // }
 
  return (
      <Layout>
        <SideMenu></SideMenu>
        <Layout>
          <TopHeader></TopHeader>

          <Content style={{
            margin: '24px 16px',
            padding: 24,
            minHeight: 280,
            background: colorBgContainer,
          }}>
            <NewRouter></NewRouter>
          </Content>
        </Layout>
      </Layout>
   
  );
}
